package cn.hxt.system.domain;

import cn.hxt.basic.domain.BaseDomain;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor//无参构造
@AllArgsConstructor//所以有参构造
public class Type extends BaseDomain{

    //分类编号
    public String sn;
    //分类名称
    public String name;

    private Detail detail;


    public String getSn() {
        return sn;
    }

    public void setSn(String sn) {
        this.sn = sn;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Detail getDetail() {
        return detail;
    }

    public void setDetail(Detail detail) {
        this.detail = detail;
    }

    @Override
    public String toString() {
        return "Type{" +
                "sn='" + sn + '\'' +
                ", name='" + name + '\'' +
                ", detail=" + detail +
                '}';
    }
}
